﻿@model BanDTBLL.tintuc

@{
    ViewBag.Title = "Đăng bài";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "TinTuc", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Chủ đề mới</legend>
        <div class="editor-label">
            Tiêu đề
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.tieude)
            @Html.ValidationMessageFor(model => model.tieude)
        </div>

        <div class="editor-label">
            Nội dung
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.noidung)
            @Html.ValidationMessageFor(model => model.noidung)
        </div>

        Hình ảnh
        <input type="file" name="file" />
        <p>
              <input type="submit" value="Đăng" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
